<style scoped lang="scss">
@import "@/styles/_variables.scss";
@import "@/styles/_mixins.scss";

h1 {
  font-size: .4267rem;
  font-weight: 400;
}
</style>
<template>
  <div>
    <PageTitleBar title="我的粉丝" :path="'/user'" />
  </div>
</template>
<script setup>
import PageTitleBar from '@/components/common/PageTitleBar.vue'
import { getFollowersAPI } from "@/api/user/user";
import { useUserStore } from "@/store/modules/user/user";
const userStore = useUserStore()
const userId = userStore.userInfo.userId
// 页数 
const pageNum = ref(1)

// 获取关注用户列表
async function getFollowers() {
  const res = await getFollowersAPI(userId, pageNum.value)
  console.log(''res)
  if (res.code === 200) {
    console.log(res)
  }
}
onMounted(() => {
  getFollowers()
})
</script>